<template>
  <div>
    <h2>学校名称： {{ name | mySlice}}</h2>
    <h2>学校地址: {{ address }}</h2>
    <button @click="test">点我测试一下hello</button>
  </div>
</template>

<script>

export default {
  name: "Student",
  data() {
    return {
      name: '天津123456',
      address: '西青'
    };
  },
  methods: {
    test() {
      this.hello()
    }
  }
};
</script>

<style scoped>
</style>